package com.sghj.SysPermission.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sghj.SysPermission.entity.SysUser;
import com.sghj.SysPermission.entity.Vo.userShowVo;

import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xrx
 * @since 2022-02-18
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    Set<String> getUserMenu(Integer sysUserId);

    int updateUser(SysUser newUser);

    Set<String> getUserRoles(Integer sysUserId);

    userShowVo getUserDetails(Integer id);

    IPage<userShowVo> getUserPage(IPage<userShowVo> page, SysUser user);

    SysUser selectUserByUserName(String username);
}
